18. Exercise: Remove Guests

Removing Guests

During this exercise, you'll remove guests from the database by swiping them off the waitlist list.

Exercise Code

Exercise: T07.06-Exercise-RemoveGuests

We encourage you to go try out what we just did yourself:

Check the boxes below once you're done.

SOLUTION:
  • Create removeGuest method that removes a record from DB
  • Create a new ItemTouchHelper that handles swiping guests off the list
  • Set the tag of the recyclerview item to the DB id of that guest